package appapi.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;

import appapi.entity.Zhongjiao.MaintenandetailDto;
import appapi.entity.app.MaintenandetailEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @author djq
 * @date 2023/5/25 9:59
 * @description:
 */

@Mapper
public interface MaintenandetailMapper {
    int deleteByPrimaryKey(Long maintenanRecId);

    int deleteByMainId(@Param("mainId")Long mainId);

    int insert(MaintenandetailDto record);

    int insertSelective(MaintenandetailDto record);

    MaintenandetailDto selectByPrimaryKey(Long maintenanRecId);

    List<MaintenandetailDto> selectAllByMainId(@Param("mainId")Long mainId);

    int updateByPrimaryKeySelective(MaintenandetailDto record);

    int updateByPrimaryKey(MaintenandetailDto record);

    void addInsert(List<MaintenandetailEntity> addList);

    List<Map<String, Object>> selectAllByMainIdList(long mainId);

    int insertList(List<MaintenandetailDto> mainDetails);

    int deleteByMainIds(@Param("mainIds")List<Long> mainIds);
}